MOVEIT AUTOMATION BACKUP/RESTORE TASK USAGE
--------------------------------------------

OVERVIEW
   on source system the CERTIFICATES, HOSTS, and TASKS will be exported to "CentralZipfile.zip" and the "Keymat" registry key will be exported
   on target system those items will be imported, overwriting existing CERTIFICATES, HOSTS, and TASKS

BACKUP THE SOURCE SERVER
on source server:
1. In TASKS, press Add Task -> Import and load the generic "System Backup and Restore" task from .XML file
      *if prompted to overwrite the "Default" Host that's fine, it doesn't affect any of the user entered hosts
2. Open the Backup Task and perform the following:
		- edit the task step "Run built-in script 'Certs Backup'"
			- Generate and enter (via "Reset value") an alphanumeric password for the "Certs_Password" value (do not use symbols)
			- Record this password for use on the target server
		- If needed, edit all "Save into..." steps to point to the desired target path
		- Edit the task step "Run built-in script 'Command Line App' ; C:\mysql\bin\mysql.exe" and update the MySQL "root" password to match this system
			- If you are not using MySQL as the database type, you may disable this step instead
3. Run the Backup task
4. Copy the created "CentralZipfile.zip" file and the Keymat registry file to the target server
5. At this point this can be set up as a daily scheduled Task per usual backup practices
6. Run regedit and export the "Keymat" registry key: HKEY_LOCAL_MACHINE\Software\Standard Networks\MOVEitCentral\Keymat
      * this only needs to be done once as it never changes after initial MOVEit Automation installation
7. Store the CentralZipfile.zip and KeyMat.reg files securely as they contain highly sensitive data
8. Backup COMPLETE


RESTORE TO TARGET SERVER
on target server:
1.  FIRST! if this is a test run or you otherwise don't want the tasks to immediately start running after restoring, disable the Task Scheduler:
      - Logon to the MOVEit Automation server over RDP and open the "MOVEit Automation Config" Utility
      - On the "General" tab, check "Start with scheduler disabled"
      - Click OK
      - Log into the web console as an Admin User
      - Click COMMANDS at the top right, click "Stop task scheduler"
2. If the server was not installed using the same Tamper Detection key as the source server, then you should reset the key at this point so that they match
	- If you do not know what Tamper Detection key is in use on the source server, you can reset Tamper Detection after performing the restore operation (see step 16 below)
3. In TASKS, press Add Task -> Import and load the "System Backup and Restore" task from .XML file
      *if prompted to overwrite the "Default" Host that's fine, it doesn't affect any of the user entered hosts
4. Open the Restore Task and perform the following:
		- Edit the "Load ..." step and point to the target path where "CentralZipfile.zip" is located on this server
		- Edit the "Run built-in script 'Certs Backup'" step:
			enter the same alphanumeric password for the "Certs_Password" value used on the source server
		- Edit the step "Run built-in script 'Command Line App' and update the MySQL "root" password to match this system
			- If you are not using MySQL as the database type, you may disable this branch instead
5. Run the Restore task -- NOTE! this will *OVERWRITE* all existing HOSTS, TASKS, and MOVEit Automation CERTIFICATES on this system!
6. Confirm that the task status shows it completed successfully
7. Log out of web console
8. Import the "KeyMat" registry file from the source server by double-clicking it
9. Stop the "MOVEit Automation Web Admin" service, then stop the "MOVEit Automation" service
10. Start the "MOVEit Automation" service, then start the "MOVEit Automation Web Admin" service
11. Log back into the web console
12. Verify HOSTS and TASKS from the source server are restored
13. Test HOST connectivity and TASK functionality
14. Verify that all PGP Keys, SSH Client Keys and TLS Client Certificates have been imported
15. Open the Task Run, File Activity and Audit reports and confirm that records from the source server database are present
16. If you the Tamper Detection keys were not synchroznied before running the Restore Task (step 2 above), you should reset Tamper Detection at this point to avoid further Tamper Detection failures
17. Logon to the MOVEit Automation server over RDP and confirm that the StateFiles folder (under %ProgramData%\MOVEit\MOVEitAutomation has been successfully restored
18. If everything is functioning OK, start and enable the Task Scheduler if it's not already running:
      - Log into the web console as an Admin User
      - Click COMMANDS at the top right, click "Start task scheduler"
      - Logon to the MOVEit Automation server over RDP and open the "MOVEit Automation Config" Utility
      - On the "General" tab, uncheck "Start with scheduler disabled"
      - Click OK
19. Restore COMPLETE